package com.xiao.hao.controller;


import com.xiao.hao.facade.XhSchemeListFacade;
import com.xiao.hao.req.XhSchemeListQueryPageReq;
import com.xiao.hao.utils.PageResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description 方案列表 controller层
 * @Author xiaohao
 * @Date 2025-03-05 17:23:15
 */

@Api(tags = "方案列表控制层")
@RestController
@Slf4j
@RequestMapping("xhSchemeList")
public class XhSchemeListController {


    @Resource
    private XhSchemeListFacade facade;

//    @ApiOperation(value = "新增")
//    @PostMapping("insert")
//    @CheckParamsAnnotation(CheckParamsEnum.INSERT_CHECK)
//    public Result insert(@RequestBody XhSchemeListInsertReq req) {
//        return facade.insert(req);
//    }
//
//    @ApiOperation(value = "编辑")
//    @PostMapping("update")
//    @CheckParamsAnnotation(CheckParamsEnum.UPDATE_CHECK)
//    public Result update(@RequestBody XhSchemeListUpdateReq req) {
//        return facade.update(req);
//    }
//
//    @PostMapping("delete")
//    @ApiOperation(value = "删除")
//    public Result delete(@RequestBody BaseId req) {
//        return facade.delete(req);
//    }

    @ApiOperation(value = "方案列表查询和模糊搜索查询")
    @PostMapping("queryPage")
    public PageResult queryPage(@RequestBody XhSchemeListQueryPageReq req) {
        return facade.queryPage(req);
    }


}


